# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: 


DESCRIPTION="Veejay is a live performance tool featuring non-linear editing and mixing from multiple sources"
HOMEPAGE="veejay.sourceforge.net"
SRC_URI="mirror://sourceforge/veejay/${P}.tar.bz2"

KEYWORDS="x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="sdl dga quicktime directfb X"


DEPEND="sdl? ( >=media-libs/libsdl-1.2 )
		directfb? ( >=dev-libs/DirectFB-0.9.17 )
		quicktime? ( media-libs/libquicktime )
		X? ( virtual/x11 x11-libs/gtk+ )
		>=media-libs/libdv-0.99
		>=dev-libs/libxml2-2.5.4"


src_compile() {
	cd ffmpeg
	econf || die 
	emake || die
	cd ..
	use quicktime && myconf="${myconf} --with-quicktime=/usr/lib/"
	use X ||  myconf="${myconf} --without-x"
	use X &&  myconf="${myconf} --with-x"
	econf --with-dv=/usr/lib ${myconf} || die
	emake || die 
}

src_install() {
	einstall || die 
	dodoc  AUTHORS BUGS COPYING INSTALL NEWS README TODO
	doman man/veejay.1 man/vjrender.1 man/yuv2rawdv.1
}
